from tkinter import *

tk = Tk()

counter = IntVar()

label = Label(textvariable=counter)

def count_number():
    counter.set(1 + counter.get())
    tk.after(1000, count_number)

label.pack()
count_number()
tk.mainloop()
